package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_DataExecutionDetail", catalog="Id")
public class TpDataExecutionDetail extends BaseEntity<TpDataExecutionDetail> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="DayRun", nameJava="dayRun", typeDataBase="char")
	private String dayRun;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpDataExecutionDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public String getDayRun() {
		return dayRun;
	}
	public TpDataExecutionDetail setDayRun(String dayRun) {
		this.dayRun = dayRun;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpDataExecutionDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpDataExecutionDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpDataExecutionDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpDataExecutionDetail tpDataExecutionDetail(
		String dayRun,
		Integer status
			) {
		TpDataExecutionDetail entity = new TpDataExecutionDetail();
		entity.setDayRun(dayRun);
		entity.setStatus(status);
		return entity;
	}
}